<template>
<div class="home">
  <h2>Home Page</h2>

  <ul>
    <li v-for="item in $store.state.banners" :key="item.acm">
      {{item.title}}
    </li>
  </ul>
  <hr>
  <ul>
    <li v-for="item in $store.state.recommends" :key="item.acm">
      {{item.title}}
    </li>
  </ul>
</div>
</template>

<script setup>
  import {useStore} from 'vuex'
  const store=useStore()
  store.dispatch('fetchHomeMultdataAction')
  .then(res=>{
    console.log("请求结果：",res)
  })
</script>



<style scoped>

</style>